package com.hex.ds.hdtp.core.inf.data.table.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;

/**
 * @Package com.hex.ds.hdtp.core.inf.data.table.po
 * @ClassName TableTransferListPo
 * @Description 表迁移清单-PO对象
 * @Author Wang zhihao
 * @Date 2023/8/8 18:42
 * @Version v1.0
 **/
@Data
@TableName(value = "tm_table_transfer_list")
public class TableTransferListPo implements Serializable {

    @TableId(value = "pk_id", type = IdType.ASSIGN_UUID)
    private String pkId;

    @TableField(value = "task_pk_id")
    private String taskPkId;

    @TableField(value = "source_db_name")
    private String sourceDbName;

    @TableField(value = "source_table_name")
    private String sourceTableName;

    @TableField(value = "target_db_name")
    private String targetDbName;

    @TableField(value = "target_table_name")
    private String targetTableName;

    @TableField(value = "source_create_sql")
    private String sourceCreateSql;

    @TableField(value = "target_create_sql")
    private String targetCreateSql;

    @TableField(value = "partition_field_name")
    private String partitionFieldName;

    @TableField(value = "status")
    private String status;

    @TableField(value = "source_conn_pk_id")
    private String sourceConnPkId;

    @TableField(value = "target_conn_pk_id")
    private String targetConnPkId;

    @TableField(value = "transfer_method")
    private String transferMethod;

    @TableField(value = "crt_user" , fill = FieldFill.INSERT)
    private String crtUser;

    @TableField(value = "crt_user_name" , fill = FieldFill.INSERT)
    private String crtUserName;

    @TableField(value = "crt_ts" , fill = FieldFill.INSERT)
    private String crtTs;

    @TableField(value = "up_user" , fill = FieldFill.INSERT_UPDATE)
    private String upUser;

    @TableField(value = "up_user_name" , fill = FieldFill.INSERT_UPDATE)
    private String upUserName;

    @TableField(value = "up_ts" , fill = FieldFill.INSERT_UPDATE)
    private String upTs;

}
